package com.snda.lidejia.xml2pojo.example;

import com.snda.lidejia.xml2pojo.example.Projects.Project;
import com.snda.lidejia.xml2pojo.XMLMapping;
import java.io.FileInputStream;
import java.util.List;

/**
 * Hello world!
 *
 */
public class Example {

    public static void main(String[] args) throws Exception {
        Projects root = XMLMapping.mapping(Projects.class, new FileInputStream("t_area_group.xml"));
        List<Project> projects = root.getProjects();
        for(Project project : projects) {
            System.out.println(project.getName() +" " + project.getProjectID());
        }
    }
}
